package com.yu.controller;


import com.yu.mapper.GoodsMapper;
import com.yu.mapper.UserMapper;
import com.yu.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private UserMapper userMapper;

    @GetMapping("/register")
    public String queryAll () {

        int rs = userMapper.insertUser (new User (5, "fsfa", "afaasfsaf"));
        String re = "zheshi:" + rs;
        return re;
    }


}
